class Student:
    school='小学'
    classNum=3
    def study(self):
        print(f'学生学习')
    def exercise(self):
        print(f"学生锻炼")
    def eat(self):
        print(f"学生吃饭")
tom=Student()
print(tom.school)
print(tom.classNum)
tom.study()
tom.exercise()
tom.eat()
